function loadNewJs(array,index,callback){
    if(typeof(index)==='function'){
        callback=index;
        index=0;
    }
    if(typeof(array)==='string'){
        var t=array;
        array=[];
        array.push(t);
    }
    index=index==null?0:index;
    if(index>=array.length){
        if(typeof(callback)==='function'){
            callback();
        }
        return;
    }
    var element = document.createElement("script");
    element.setAttribute("src",array[index++]);
    element.onload=function(){loadNewJs(array,index,callback)}
    element.onreadystatechange=function(){if (this.readyState == 'complete'){loadNewJs(array,index,callback)}}
    document.getElementsByTagName("html")[0].appendChild(element);
}